import { Injectable } from '@angular/core';
import { BaseHttpService } from './base-http.service';
import { Observable } from 'rxjs/internal/Observable';

@Injectable({
	providedIn: 'root'
})
export class PublishService {
	private readonly COMM_URL = `/task`;
	constructor(private http: BaseHttpService) { }

  addTask(param: any): Observable<any> {
    return this.http.post(`${this.COMM_URL}/addTask`, param);
  }

  getWallet(): Observable<any> {
    return this.http.get(`${this.COMM_URL}/getWallet`);
  }
}
